<template>
    <el-container>
        <el-header>
            <f-header/>
        </el-header>
        <el-container>
            <el-aside :width="pageStore.asideWidth">
                <f-menu></f-menu>
            </el-aside>
            <el-main>
                <f-tag-list/>
                <!-- 缓存10个页面，超过10个，会将不用的销毁 -->
                <router-view v-slot="{ Component }">
                    <keep-alive :max="10">
                        <component :is="Component"></component>
                    </keep-alive>
                </router-view>
            </el-main>
        </el-container>
    </el-container>
</template>
<script setup>
import FHeader from '@/layouts/components/FHeader.vue';
import FMenu from '@/layouts/components/FMenu.vue';
import FTagList from '@/layouts/components/FTagList.vue';
import { usePageStore } from '@/stores/page'
const pageStore = usePageStore()
// console.log(pageStore.asideWidth)
</script>
<style>
.el-aside{
    transition: all 0.2s;
}
</style>